package com.stox.core.util;

import java.util.Date;

public class DateUtil {

	@SuppressWarnings("deprecation")
	public static Date trim(java.util.Date date){
		date.setHours(0);
		date.setMinutes(0);
		date.setSeconds(0);
		return date;
	}
	
	public static String getTextMonth(int month){
		switch(month){
		case 1 : return "FEB";
		case 2 : return "MAR";
		case 3 : return "APR";
		case 4 : return "MAY";
		case 5 : return "JUN";
		case 6 : return "JUL";
		case 7 : return "AUG";
		case 8 : return "SEP";
		case 9 : return "OCT";
		case 10 : return "NOV";
		case 11 : return "DEC";
		default : return "";
		}
	}
	
}
